<template>
  <div id="app">
    <div id="nav">
      <router-link v-for="(route,index) in routes" :key="index" :to="route.path">{{route.name}}</router-link> 
     
    </div>
    <router-view/>
  </div>
</template>
<script>
// @ is an alias to /src


export default {
  name: 'APP',
  components: {
    
  },
  computed:{
    routes(){
      return this.$router.options.routes
    }
  },
  mounted(){

  }
}
</script>
<style lang="less">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
#nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;
    margin-right: 20px;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}

</style>
